package com.exam.system.token;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @ClassName MyJsonWebToken
 * @Description
 * @Author ckl
 * @DATE 2021/5/24 11:28
 * @versions 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MyJsonWebToken implements AuthenticationToken {
    String token;

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
